package org.bees.cms.web.util.velocity.global;

import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;

public class Utils {

	public Object get(Object object, String property) throws Exception {
		Object result = null;
		PropertyDescriptor descriptor = new PropertyDescriptor(property, object.getClass());
		Method method = descriptor.getReadMethod();
		result = method.invoke(object);
		return result;
	}

}
